import {
  SystemMenuApp,
  SystemMenuDelete,
  SystemMenuIsShowMenu,
  SystemUserMenuZeroCode,
  SystemMenuSaveMove,
} from "@/services/api";
import { request, METHOD } from "@/utils/request";

/**
 * 树
 */
export function menuQuery() {
  return request(SystemMenuApp, METHOD.GET, {});
}
/**
 * 删除
 */
export async function menuDel(param) {
  return request(SystemMenuDelete, METHOD.POST, param);
}

/**
 *
 */
export function menuShow(param) {
  return request(SystemMenuIsShowMenu, METHOD.POST, param);
}

/**
 *
 */
export function menuZeroCode() {
  return request(SystemUserMenuZeroCode, METHOD.POST, {});
}
/**
 * 保存
 */
export async function saveMove(form) {
  return request(SystemMenuSaveMove, METHOD.POST, form);
}
export default {
  menuQuery,
  menuDel,
  menuShow,
  menuZeroCode,
  saveMove,
};
